Bokeh Tutorial

1.5 Glyphs - Legend

Exercise: Create a legend plot for the temperature map with the Glyph interface

Tips:

  • Glyphs: Text, Rect

In [ ]:
# Imports

In [ ]:
# Output option

In [ ]:
# Set ranges

In [ ]:
# Create plot

In [ ]:
# For each color in your palette, add a Rect glyph to the plot with the appropriate properties

In [ ]:
# Add text labels and add them to the plot

In [ ]:
# Show plot